function showM(rowNo, status_t) {
	if (status_t == 1) {
		document.getElementById('row' + rowNo).style.display = "none";
		document.getElementById('delete_confirm' + rowNo).style.display = "inline";
	} else {
		document.getElementById('row' + rowNo).style.display = "none";
		document.getElementById('cofirm' + rowNo).style.display = "inline";
		document.getElementById('delete' + rowNo).style.display = "inline";
	}
}

function hiddenM(rowNo, status_t) {
	if (status_t == 1) {
		document.getElementById('delete_confirm' + rowNo).style.display = "none";
		document.getElementById('row' + rowNo).style.display = "inline";
	} else {
		document.getElementById('cofirm' + rowNo).style.display = "none";
		document.getElementById('delete' + rowNo).style.display = "none";
		document.getElementById('row' + rowNo).style.display = "inline";
	}
}

function confirmData(ref_no, table_no) {
	var URL = "reservations_manager.php";
	var data = "ref_no=" + ref_no + "&table_no=" + table_no + "&mode=" + 1;
	ajaxLoad('post', URL, data, null);
}

function deleteData(ref_no, table_no) {

	if (!confirm('คุณต้องการลบการจองโต๊ะอาหารหมายเลขอ้างอิง ' + ref_no + ' หรือไม่?')) {
		return;
	}

	var URL = "reservations_manager.php";
	var data = "ref_no=" + ref_no + "&table_no=" + table_no + "&mode=" + 0;
	//alert(data);
	ajaxLoad('post', URL, data, null);
}